<?php

/**
 * 围观券
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 2016/12/21
 * Time: 下午8:02
 */
class Onlookers extends MY_Api_Controller
{
    /**
     * 用户围观券
     */
    public function index()
    {
        $uid   = $this->uid;
        $page  = (int)$this->input->get_post('page');
        $limit = (int)$this->input->get_post('limit');


        $this->load->service('common/service_common_onlookers');
        $data = $this->service_common_onlookers->index($uid, $page, $limit);


        $this->json_output($data['data'], $data['status']);
    }
}